<?php

function add_opinions_stream($sender_id, $receiver_id, $ref_id, $type_id, $response, $message) {
    if(!$sender_id || !$receiver_id || !$type_id)
        return FALSE;
    $timestamp = time();
    $query = "INSERT INTO opinions_streams (sender_id, receiver_id, ref_id, type_id, response, message, timestamp)
                            VALUES ('$sender_id', '$receiver_id', '$ref_id', '$type_id', '$response', '$message', '$timestamp')";
    return safe_insert_query($query);
}

function get_opinions_stream() {
	
}

?>